package com.chinairi.mall.dao;

import com.chinairi.mall.model.ProjectPlanReq;
import com.chinairi.mall.model.ReqModelDetail;
import com.chinairi.mall.model.ServiceOrderProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 项目服务订单表 Mapper 接口
 * </p>
 *
 * @author gsl
 * @since 2020-09-15
 */
public interface ServiceOrderProjectMapper extends BaseMapper<ServiceOrderProject> {
    /**
     * 根据模型id获取模型明细
     * @param modelId
     * @return
     */
    List<ReqModelDetail> getReqModelDetailByModelId(@Param("modelId") String modelId);

    /**
     * 获取项目的需求计划状态
     * @param pId 项目id
     * @return获取项目的需求计划状态
     */
    ProjectPlanReq getProjectPlanReq(@Param("pId") String pId);
}
